/*
 * Node.h
 *
 *  Created on: Jun 4, 2011
 *      Author: gilang
 */

#ifndef NODE_H_
#define NODE_H_

class Node {
private:
	int label;
	double x, y, z;
public:
	Node() {
	}
	Node(int label, double x, double y, double z) {
		this->label = label;
		this->x = x;
		this->y = y;
		this->z = z;
	}
	Node(int label, double x) {
		this->label = label;
		this->x = x;
		this->y = 0;
		this->z = 0;
	}
	Node(int label, double x, double y) {
		this->label = label;
		this->x = x;
		this->y = y;
		this->z = 0;
	}
	Node(int label,const Node &n) {
		this->label=label;
		this->x = n.x;
		this->y = n.y;
		this->z = n.z;
	}
	double & getX() {
		return x;
	}
	double & getY() {
		return y;
	}
	double & getZ() {
		return z;
	}
	virtual ~Node() {
	}
};

#endif /* NODE_H_ */
